package cn.wolfcode.luowowo.article.query;

import lombok.Getter;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 游记范围映射类
 */
@Getter
public class TravelCondition implements Serializable{
    //路由的时间范围映射
    public static final Map<Integer,TravelCondition> TRAVEL_DAY=new HashMap<>();

    //旅游除法时间月份
    public static final Map<Integer,TravelCondition> TIMEMAP=new HashMap<>();

    public static final Map<Integer,TravelCondition> PRE_EXPENDSMAP=new HashMap<>();
    static {
        TRAVEL_DAY.put(1,new TravelCondition(0,3));
        TRAVEL_DAY.put(2,new TravelCondition(4,7));
        TRAVEL_DAY.put(3,new TravelCondition(8,14));
        TRAVEL_DAY.put(4,new TravelCondition(15,Integer.MAX_VALUE));
//旅游除法月份
        TIMEMAP.put(1,new TravelCondition(1,2));
        TIMEMAP.put(2,new TravelCondition(3,4));
        TIMEMAP.put(3,new TravelCondition(5,6));
        TIMEMAP.put(4,new TravelCondition(7,8));
        TIMEMAP.put(5,new TravelCondition(9,10));
        TIMEMAP.put(6,new TravelCondition(11,12));
//人均消费
        PRE_EXPENDSMAP.put(1,new TravelCondition(1,999));
        PRE_EXPENDSMAP.put(2,new TravelCondition(1000,6000));
        PRE_EXPENDSMAP.put(3,new TravelCondition(6001,200000));
        PRE_EXPENDSMAP.put(4,new TravelCondition(200001,Integer.MAX_VALUE));
    }

    private int min;
    private int max;
    public TravelCondition(int min,int max){
        this.min=min;
        this.max=max;
    }
}
